/*
package br.com.stefanini.schs.ejb.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

@Entity
@NamedQueries({
	@NamedQuery(name = "Estagiario.consultarEstagiarioPorEmail",query = "select e from Estagiario e where e.email = :email")
})
public class Estagiario extends Funcionario {

	private static final long serialVersionUID = -5839961050151660496L;

	@Id
	@GeneratedValue
	@Column(name = "id")
	private long id;

	@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, targetEntity = Demanda.class)
	private List<Demanda> demandas;

	@OneToMany(mappedBy = "estagiario", fetch = FetchType.LAZY, cascade = CascadeType.ALL, targetEntity = Ponto.class)
	private List<Ponto> pontos;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "estagiario", targetEntity = Justificativa.class)
	private List<Justificativa> justificativas;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public List<Demanda> getDemandas() {
		return demandas;
	}

	public void setDemandas(List<Demanda> demandas) {
		this.demandas = demandas;
	}

	public List<Ponto> getPontos() {
		return pontos;
	}

	public void setPontos(List<Ponto> pontos) {
		this.pontos = pontos;
	}

	public List<Justificativa> getJustificativas() {
		return justificativas;
	}

	public void setJustificativas(List<Justificativa> justificativas) {
		this.justificativas = justificativas;
	}

}
*/